package com.hxy.sys.mapper;

import com.hxy.basic.mapper.BaseMapper;
import com.hxy.sys.domain.SystemDictionaryDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * mapper层
 */
@Repository
public interface SystemDictionaryDetailMapper extends BaseMapper<SystemDictionaryDetail> {
    /**
     * 删除类型时,删除对应明细
     * @param id
     */
    void deleteType(Long id);

    /**
     * 批量删除
     * @param ids
     */
    void patchDeleteType(List<Long> ids);

    /**
     * 找对应类型的细节
     * @param id
     * @return
     */
    List<SystemDictionaryDetail> findBytypeId(Long id);


}
